<extend name="Index:base" />
<block name="title"><title>编辑权限</title></block>
<block name="style">
 <style>
.main,.panel-default>.panel-heading{
background: #e6e8ea;
}
 </style>
</block>
	<!-- start: Header -->
<block name="body">
			<!-- end: Main Menu -->
						
		<!-- start: Content -->
		<div class="main ">
		
			<div class="row">
				<div class="col-lg-12">
					<h3 class="page-header"><i class="fa fa-life-bouy"></i>编辑权限</h3>
					<ol class="breadcrumb">
						<li><i class="fa fa-home"></i><a href="{:U('Admin/group')}">管理组</a></li>
						<li><i class="fa fa-list-alt"></i><a href="#">编辑权限</a></li>			
					</ol>
				</div>
			</div>

			<div class="row">		
				<div class="col-lg-12">
					<div class="panel panel-default">

						<div class="panel-body">
							<form action="{:U('Admin/pow_updata')}" method="post" class="form-horizontal" >
								<input type="hidden" id="atc" name="atc" value="set_updata"> 
								<input type="hidden" id="atc" name="atc" value="set_updata">
								<input type="hidden" id="id" name="id" value="{$id}">
								<div class="form-group">
				                    <div class="col-md-9">
				                        <label class="checkbox-inline" for="inline-checkbox1">
				                        	<input type="checkbox" id="checkall" > 全部
				                        </label>
				                    </div>
				                </div> <br/> 
								<div class="form-group">
									
				                    <div class="col-md-9">
									<foreach name="list" item="vo">
				                        <label class="checkbox-inline" for="inline-checkbox1">
				                        	<input type="checkbox"  name="set_url[]" value="{$vo.set_url}" 
											<foreach name="url_arr" item="vu">		
											<eq name="vu" value="$vo.set_url">
											checked
											</eq>
											</foreach>
											<if condition="$url_arr eq ''">
												<foreach name="set_pow" item="vk">
												<eq name="vk.gr_status" value="2">
												checked
												</eq>
												</foreach>	
											</if>
											
											> {$vo.set_name}
				                        </label>
										</foreach>
				                    </div>

				                </div>  <br/> 
								
								<div class="form-group">

				                    <div class="col-md-9">
										<button class="btn btn-primary mypost" type="sunmit">确认</button>
				                    </div>
				                </div>
							  
							</form>			
						</div>
					</div>
				</div><!--/col-->
			
			</div><!--/row-->				
			
		<!-- end: Content -->
		<br><br><br>
		
	</div><!--/container-->




	
</block>
<block name="script">
<script>
$("#checkall").click( 
  function(){ 
    if(this.checked){ 
        $('input[type="checkbox"]').attr('checked', true)
    }else{ 
        $('input[type="checkbox"]').attr('checked', false)
    } 
  } 
);

</script>
</block>	









